<!DOCTYPE html>
<html>
<head>
    <title>医生表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <div style="float: left;height:34px;line-height:34px;">用户名：</div>
            <div style="float: left;">
                <input type="text" class="form-control" v-model="q.uname" @keyup.enter="query" placeholder="用户名">
            </div>
            <div style="float: left;height:34px;line-height:34px;">手机号：</div>
            <div style="float: left;width:350px;margin-right: 10px;" id="sandbox-container">
                <input type="text" class="form-control" v-model="q.telphone" @keyup.enter="query" placeholder="用户名">
            </div>
            <a class="btn btn-primary" @click="query">查询</a>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户昵称</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="users.username" placeholder="用户昵称"/>
                        </div>
                    </div>
											                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">头像</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="users.headimg" placeholder="头像"/>-->
                        <!--</div>-->
                    <!--</div>-->

                    <div class="form-group" id="t1">
                        <div class="col-sm-2 control-label">头像</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="users.headimg" id="headimg" placeholder="头像"
                                   readonly="readonly"/>
                            <button type="button" class="layui-btn  layui-btn-sm" id="xzHeadimg">
                                选择图片
                            </button>
                            <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" id="isHeadimg">
                                上传
                            </button>
                            <div id="xsHeadimg"></div>
                        </div>
                    </div>

											                    <div class="form-group">
                        <div class="col-sm-2 control-label">openid</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="users.openid" placeholder="openid"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">手机号</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="users.telphone" placeholder="手机号"/>
                        </div>
                    </div>
											                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">用户类型 0 用户 1 医生</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="users.type" placeholder="用户类型 0 用户 1 医生"/>-->
                        <!--</div>-->
                    <!--</div>-->

                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户类型</div>
                        <label class="radio-inline">
                            <input type="radio" name="type" value="0" v-model="users.type" checked="checked"/> 用户
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="type" value="1" v-model="users.type"/> 医生
                        </label>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">添加时间</div>
                        <div class="col-sm-10">
                            <input type="text" class="form-control" v-model="users.createtime" placeholder="添加时间"/>
                        </div>
                    </div>
											                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">健康号</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="users.healthsn" placeholder="健康号"/>-->
                        <!--</div>-->
                    <!--</div>-->
											                    <!--<div class="form-group">-->
                        <!--<div class="col-sm-2 control-label">是否在线 0 在线 1 离线</div>-->
                        <!--<div class="col-sm-10">-->
                            <!--<input type="text" class="form-control" v-model="users.online" placeholder="是否在线 0 在线 1 离线"/>-->
                        <!--</div>-->
                    <!--</div>-->

                    <div class="form-group">
                        <div class="col-sm-2 control-label">是否在线</div>
                        <label class="radio-inline">
                            <input type="radio" name="online" value="0" v-model="users.online" checked="checked"/> 在线
                        </label>
                        <label class="radio-inline">
                            <input type="radio" name="online" value="1" v-model="users.online"/> 离线
                        </label>
                    </div>

							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/users.js?_${.now?long}"></script>
</body>
</html>